﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ReworkManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ReworkManagement.ReworkReasonVMs
{
    public partial class ReworkReasonBatchVM : BaseBatchVM<ReworkReason, ReworkReason_BatchEdit>
    {
        public ReworkReasonBatchVM()
        {
            ListVM = new ReworkReasonListVM();
            LinkedVM = new ReworkReason_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ReworkReason_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ReworkReason._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ReworkReason._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._ReworkReason._ReType")]
        public long? ReTypeId { get; set; }
        [Display(Name = "_Model._ReworkReason._ReasonName")]
        public string ReasonName { get; set; }
        [Display(Name = "_Model._ReworkReason._ReasonCode")]
        public string ReasonCode { get; set; }
        [Display(Name = "_Model._ReworkReason._Active")]
        public bool? Active { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}